﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Data;
using System.Windows.Input;
using TanmiaGrp.Basis;
using TanmiaGrp.Basis.Properties;
using TanmiaGrp.GeneralLedger.Core;
using TanmiaGrp.GeneralLedger.Domain;
using TanmiaGrp.GeneralLedger.WinApp.Commands;

namespace TanmiaGrp.GeneralLedger.WinApp.Pages
{
    public class GroupBrowserViewModel : BaseBrowserViewModel<Group>
    {
        public GroupBrowserViewModel()
        {
            BusinessDomain = new GroupDomain();

            EntitySavedOrDeletedEvent = Events.GroupBrowserRefresh;
            EntityNavigationEvent = Events.GroupEntityNavigate;
            BrowserInitializedEvent = Events.GroupBrowserInitialized;
            PageNavigationEvent = Events.GroupPageNavigation;

            WireEvents();

            EditorView = ViewNames.GroupEditor;
            BrowserView = ViewNames.GroupBrowser;
        }
    }
}
